﻿<Window x:Class="WpfSilverMap.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SilverMap Blast Collection Browsser"
        Width="800"
        Height="600"
        WindowStartupLocation="CenterScreen"
        WindowStyle="ThreeDBorderWindow"
        xmlns:sm="clr-namespace:QUT.Bio.SilverMap;assembly=QUT.Bio"
        xmlns:qututil="clr-namespace:QUT.Bio.Util;assembly=QUT.Bio">


    <Window.Resources>
        <LinearGradientBrush x:Key="TheBrush"
                             EndPoint="0.5,1"
                             StartPoint="0.5,0">
            <GradientStop Color="#FF484C50"
                          Offset="0" />
            <GradientStop Color="#FF424242"
                          Offset="1" />
            <GradientStop Color="#FF151515"
                          Offset="0.781" />
        </LinearGradientBrush>

        <Style x:Key="TextBlockStyle"
               TargetType="{x:Type TextBlock}">
            <Setter Property="Margin"
                    Value="0 0 5 0" />
        </Style>

        <Style x:Key="TextBoxStyle"
               TargetType="{x:Type TextBox}">
            <Setter Property="Margin"
                    Value="0 0 5 0" />
        </Style>
    </Window.Resources>

    <Window.Background>
        <SolidColorBrush Color="{DynamicResource ShadeBrushGradient3}" />
    </Window.Background>

    <Grid Name="LayoutRoot"
          HorizontalAlignment="Stretch">

        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Menu>
            <Menu.Background>
                <SolidColorBrush Color="{DynamicResource NormalBrushGradient4}" />
            </Menu.Background>
            
            <MenuItem Header="Blast Collection">
                <MenuItem Header="Load from default collection"
                          Click="LoadFromWeb" />
            </MenuItem>
        </Menu>

        <sm:MapControl Name="map"
                       Grid.Row="1"
                       Grid.Column="0"
                       Foreground="{x:Null}"
                       Background="#7F9CC7EF" />

        <qututil:PopupOverlay Name="overlay"
                              Grid.Row="1"
                              Grid.Column="0" />

        <qututil:StatusBar Grid.Row="2"
                           x:Name="statusBar"
                           Background="{DynamicResource NormalBrush}"/>
    </Grid>
</Window>
